package org.csu.bbs.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.sql.Date;
@Data
@TableName("posts")
public class Posts {
    @TableId(value = "id",type = IdType.INPUT)
    private int id;
    private String name;
    @TableField(value = "sectionid")
    private int sectionid;
    private String publisher;
    private Date date;
    private short cream;
    private short top;
    private String content;
    private String imgurl;
}
